from distutils.command.install import INSTALL_SCHEMES

# Tell distutils to put the data_files in platform-specific installation
# locations. See here for an explanation:
# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
for scheme in INSTALL_SCHEMES.values():
            scheme['data'] = scheme['purelib']

from glob import glob
pkg_config = {
	'name': 'duetopia-iso19139',
	'author': 'William Waites, Jo Walsh',
	'author_email': 'ww@styx.org, jo@frot.org',
	'url': 'http://www.terradue.com/duetopia/iso19139/',
	'description': 'Duetopia ISO19139 Python Library',
	'long_description': """
Duetopia ISO19139 Python Library
	""",
	'packages': ['duetopia', 'duetopia.iso19139'],
	'data_files': [
	],
	'license': 'GPL',
	'platforms': ['all'],
}

if __name__ == '__main__':
	from distutils.core import setup
	from os import environ

	if "DUETOPIA_VERSION" in environ:
		pkg_config['version'] = environ["DUETOPIA_VERSION"]
	else:
		from duetopia.utils.svn import version
		pkg_config['version'] = 'r%s' % version()

	setup(**pkg_config)
